package com.itheima.work;

import java.util.HashSet;

/**
 * @auther Macrydy
 * @date 2020/6/30 18:35
 */
public class Test4 {
    public static void main(String[] args) {
        HashSet<Student> hashSet = new HashSet<>();

        hashSet.add(new Student("张三", 20, "男"));
        hashSet.add(new Student("李四", 21, "女"));
        hashSet.add(new Student("张三", 20, "女"));

        System.out.println(hashSet);
    }
}
